﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_CustomType : ICustomType
    {
        public void Add(CustomType obj)
        {
            CreateFactory.GetCustomType().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetCustomType().Delete(id);
        }

        public CustomType FindById(int id)
        {
            return CreateFactory.GetCustomType().FindById(id);
        }

        public List<CustomType> GetAll()
        {
            return CreateFactory.GetCustomType().GetAll();
        }

        public void Update(int id, CustomType obj)
        {
            CreateFactory.GetCustomType().Update(id, obj);
        }
    }
}
